<?php
namespace app\home\controller;
use think\Controller;
use app\admin\model\User as UserModel;
use app\admin\model\Card as CardModel;
use app\admin\model\Cardrecord as CardrecordModel;
use think\Db;

class Test extends Controller
{

    public function test()
    {
        $weixin = new \weixin\wxapi();
        $data = array('openid' => 'opLSlweTQxbZ_GlrbNbtov5mJnnk',
        // 'card_id' => "pjK6Wjth4UdFkZGE5zonPhDxCDyI",
        // 'check_consume' => false
        );
        //$result = $weixin->get_user_card_list($data);
        //var_dump($result);

        $userinfo = $weixin->get_user_info('opLSlweTQxbZ_GlrbNbtov5mJnnk');
        dump($userinfo);die;
    }
}